.class public Lcom/nibiru/lanchuer/Lanchuer2DActivity;
.super Lx/core/XBaseXRActivity;
.source "Lanchuer2DActivity.java"

# interfaces
.implements Lcom/nibiru/launcher3d/utils/StatMonitor$OnStatChangeListener;
.implements Lcom/nibiru/launcher3d/receiver/OnAppStateChangeListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/nibiru/lanchuer/Lanchuer2DActivity$HomeKeyEventReceiver;,
        Lcom/nibiru/lanchuer/Lanchuer2DActivity$HomeKeyReceiver;,
        Lcom/nibiru/lanchuer/Lanchuer2DActivity$AppEnterReceiver;
    }
.end annotation


# instance fields
.field private appEnterReceiver:Lcom/nibiru/lanchuer/Lanchuer2DActivity$AppEnterReceiver;

.field private historyTitles:[Ljava/lang/String;

.field private isWifiAvailable:Z

.field private mAppManager:Lcom/nibiru/launcher3d/utils/LocalAppManager;

.field private mAppReceiver:Lcom/nibiru/launcher3d/receiver/AppManagerReceiver;

.field private mDbManager:Lcom/nibiru/launcher3d/db/DBManager;

.field private mHomeKeyEventReceiver:Lcom/nibiru/lanchuer/Lanchuer2DActivity$HomeKeyEventReceiver;

.field private mHomeKeyReceiver:Lcom/nibiru/lanchuer/Lanchuer2DActivity$HomeKeyReceiver;

.field protected mService:Lcom/nibiru/vrconfig/IVRDataService;

.field private mStatMonitor:Lcom/nibiru/launcher3d/utils/StatMonitor;

.field private mStatSDK:Lcom/nibiru/stat/sdk/IStatSDK;

.field private queue:Lcom/android/volley/RequestQueue;

.field private resetApi:Lcom/nibiru/api/ResetApi;

.field private resetServiceConnection:Landroid/content/ServiceConnection;

.field private serviceConnection:Landroid/content/ServiceConnection;


# direct methods
.method public constructor <init>()V
    .registers 2

    .prologue
    .line 49
    invoke-direct {p0}, Lx/core/XBaseXRActivity;-><init>()V

    .line 61
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->isWifiAvailable:Z

    .line 184
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mService:Lcom/nibiru/vrconfig/IVRDataService;

    .line 185
    new-instance v0, Lcom/nibiru/lanchuer/Lanchuer2DActivity$2;

    invoke-direct {v0, p0}, Lcom/nibiru/lanchuer/Lanchuer2DActivity$2;-><init>(Lcom/nibiru/lanchuer/Lanchuer2DActivity;)V

    iput-object v0, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->serviceConnection:Landroid/content/ServiceConnection;

    return-void
.end method

.method static synthetic access$300(Lcom/nibiru/lanchuer/Lanchuer2DActivity;)V
    .registers 1
    .param p0, "x0"  # Lcom/nibiru/lanchuer/Lanchuer2DActivity;

    .prologue
    .line 49
    invoke-direct {p0}, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->saveWhiteList()V

    return-void
.end method

.method static synthetic access$402(Lcom/nibiru/lanchuer/Lanchuer2DActivity;Lcom/nibiru/api/ResetApi;)Lcom/nibiru/api/ResetApi;
    .registers 2
    .param p0, "x0"  # Lcom/nibiru/lanchuer/Lanchuer2DActivity;
    .param p1, "x1"  # Lcom/nibiru/api/ResetApi;

    .prologue
    .line 49
    iput-object p1, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->resetApi:Lcom/nibiru/api/ResetApi;

    return-object p1
.end method

.method private bindResetService()V
    .registers 4

    .prologue
    .line 213
    new-instance v1, Lcom/nibiru/lanchuer/Lanchuer2DActivity$3;

    invoke-direct {v1, p0}, Lcom/nibiru/lanchuer/Lanchuer2DActivity$3;-><init>(Lcom/nibiru/lanchuer/Lanchuer2DActivity;)V

    iput-object v1, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->resetServiceConnection:Landroid/content/ServiceConnection;

    .line 227
    new-instance v0, Landroid/content/Intent;

    const-string v1, "com.nibiru.action.resetservice"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 228
    .local v0, "intent":Landroid/content/Intent;
    const-string v1, "com.android.nibiru.settings.vr"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;

    .line 229
    iget-object v1, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->resetServiceConnection:Landroid/content/ServiceConnection;

    const/4 v2, 0x1

    invoke-virtual {p0, v0, v1, v2}, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->bindService(Landroid/content/Intent;Landroid/content/ServiceConnection;I)Z

    .line 230
    return-void
.end method

.method private getServiceIntent(Ljava/lang/String;)Landroid/content/Intent;
    .registers 11
    .param p1, "packageName"  # Ljava/lang/String;

    .prologue
    const/4 v8, 0x0

    .line 244
    .line 245
    invoke-virtual {p0}, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v4

    new-instance v5, Landroid/content/Intent;

    const-string v6, "com.nibiru.vrdata.service"

    invoke-direct {v5, v6}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 246
    invoke-virtual {v4, v5, v8}, Landroid/content/pm/PackageManager;->queryIntentServices(Landroid/content/Intent;I)Ljava/util/List;

    move-result-object v3

    .line 247
    .local v3, "mainList":Ljava/util/List;, "Ljava/util/List<Landroid/content/pm/ResolveInfo;>;"
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    .line 248
    .local v2, "mMatchIntents":Ljava/util/List;, "Ljava/util/List<Landroid/content/Intent;>;"
    if-eqz v3, :cond_6d

    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v4

    if-lez v4, :cond_6d

    .line 249
    invoke-interface {v3}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v4

    :cond_21
    :goto_21
    invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z

    move-result v5

    if-eqz v5, :cond_6d

    invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/content/pm/ResolveInfo;

    .line 250
    .local v0, "info":Landroid/content/pm/ResolveInfo;
    if-eqz v0, :cond_21

    iget-object v5, v0, Landroid/content/pm/ResolveInfo;->serviceInfo:Landroid/content/pm/ServiceInfo;

    if-eqz v5, :cond_21

    iget-object v5, v0, Landroid/content/pm/ResolveInfo;->serviceInfo:Landroid/content/pm/ServiceInfo;

    iget-object v5, v5, Landroid/content/pm/ServiceInfo;->name:Ljava/lang/String;

    .line 251
    invoke-static {v5}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v5

    if-nez v5, :cond_21

    .line 252
    if-eqz p1, :cond_49

    iget-object v5, v0, Landroid/content/pm/ResolveInfo;->serviceInfo:Landroid/content/pm/ServiceInfo;

    iget-object v5, v5, Landroid/content/pm/ServiceInfo;->packageName:Ljava/lang/String;

    .line 253
    invoke-static {p1, v5}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result v5

    if-eqz v5, :cond_21

    .line 255
    :cond_49
    new-instance v1, Landroid/content/Intent;

    const-string v5, "com.nibiru.vrdata.service"

    invoke-direct {v1, v5}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 256
    .local v1, "intent":Landroid/content/Intent;
    new-instance v5, Landroid/content/ComponentName;

    iget-object v6, v0, Landroid/content/pm/ResolveInfo;->serviceInfo:Landroid/content/pm/ServiceInfo;

    iget-object v6, v6, Landroid/content/pm/ServiceInfo;->packageName:Ljava/lang/String;

    iget-object v7, v0, Landroid/content/pm/ResolveInfo;->serviceInfo:Landroid/content/pm/ServiceInfo;

    iget-object v7, v7, Landroid/content/pm/ServiceInfo;->name:Ljava/lang/String;

    invoke-direct {v5, v6, v7}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v1, v5}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;

    .line 259
    const-string v5, "packageName"

    iget-object v6, v0, Landroid/content/pm/ResolveInfo;->serviceInfo:Landroid/content/pm/ServiceInfo;

    iget-object v6, v6, Landroid/content/pm/ServiceInfo;->packageName:Ljava/lang/String;

    invoke-virtual {v1, v5, v6}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 261
    invoke-interface {v2, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_21

    .line 267
    .end local v0  # "info":Landroid/content/pm/ResolveInfo;
    .end local v1  # "intent":Landroid/content/Intent;
    :cond_6d
    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v4

    if-lez v4, :cond_7a

    .line 269
    invoke-interface {v2, v8}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Landroid/content/Intent;

    .line 271
    :goto_79
    return-object v4

    :cond_7a
    const/4 v4, 0x0

    goto :goto_79
.end method

.method private getWhiteList()V
    .registers 6

    .prologue
    .line 543
    sget-boolean v2, Lcom/nibiru/launcher3d/utils/LauncherHelper;->isOversea:Z

    if-eqz v2, :cond_51

    .line 544
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "http://playos.1919game.net:8080/NibiruPlay/vr/WhiteAppListAction?version=51&channel="

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    sget-object v3, Lcom/nibiru/launcher3d/utils/LauncherHelper;->CHANNEL_OVERSEA:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    .line 548
    .local v1, "url":Ljava/lang/String;
    :goto_19
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "isOversea: "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    sget-boolean v3, Lcom/nibiru/launcher3d/utils/LauncherHelper;->isOversea:Z

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ", "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/nibiru/launcher3d/utils/LogUtil;->log(Ljava/lang/String;)V

    .line 549
    new-instance v0, Lcom/android/volley/toolbox/JsonObjectRequest;

    const/4 v2, 0x0

    new-instance v3, Lcom/nibiru/lanchuer/Lanchuer2DActivity$4;

    invoke-direct {v3, p0}, Lcom/nibiru/lanchuer/Lanchuer2DActivity$4;-><init>(Lcom/nibiru/lanchuer/Lanchuer2DActivity;)V

    new-instance v4, Lcom/nibiru/lanchuer/Lanchuer2DActivity$5;

    invoke-direct {v4, p0}, Lcom/nibiru/lanchuer/Lanchuer2DActivity$5;-><init>(Lcom/nibiru/lanchuer/Lanchuer2DActivity;)V

    invoke-direct {v0, v1, v2, v3, v4}, Lcom/android/volley/toolbox/JsonObjectRequest;-><init>(Ljava/lang/String;Lorg/json/JSONObject;Lcom/android/volley/Response$Listener;Lcom/android/volley/Response$ErrorListener;)V

    .line 570
    .local v0, "request":Lcom/android/volley/toolbox/JsonObjectRequest;
    iget-object v2, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->queue:Lcom/android/volley/RequestQueue;

    invoke-virtual {v2, v0}, Lcom/android/volley/RequestQueue;->add(Lcom/android/volley/Request;)Lcom/android/volley/Request;

    .line 571
    return-void

    .line 546
    .end local v0  # "request":Lcom/android/volley/toolbox/JsonObjectRequest;
    .end local v1  # "url":Ljava/lang/String;
    :cond_51
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "http://play.1919game.net:8080/NibiruPlay/vr/WhiteAppListAction?version=51&channel="

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    sget-object v3, Lcom/nibiru/launcher3d/utils/LauncherHelper;->CHANNEL:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    .restart local v1  # "url":Ljava/lang/String;
    goto :goto_19
.end method

.method private initHistory()V
    .registers 8

    .prologue
    const/4 v6, 0x0

    .line 275
    iget-object v3, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->historyTitles:[Ljava/lang/String;

    if-eqz v3, :cond_a

    iget-object v3, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->historyTitles:[Ljava/lang/String;

    array-length v3, v3

    if-nez v3, :cond_16

    .line 277
    :cond_a
    :try_start_a
    invoke-virtual {p0}, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    const/high16 v4, 0x7f0b0000

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getStringArray(I)[Ljava/lang/String;

    move-result-object v3

    iput-object v3, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->historyTitles:[Ljava/lang/String;
    :try_end_16
    .catch Landroid/content/res/Resources$NotFoundException; {:try_start_a .. :try_end_16} :catch_1c4

    .line 283
    :cond_16
    :goto_16
    new-instance v0, Lcom/nibiru/launcher3d/entry/AppData;

    invoke-direct {v0}, Lcom/nibiru/launcher3d/entry/AppData;-><init>()V

    .line 284
    .local v0, "app":Lcom/nibiru/launcher3d/entry/AppData;
    iget-object v3, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mAppManager:Lcom/nibiru/launcher3d/utils/LocalAppManager;

    const-string v4, "com.Nibiru.IceParkour"

    invoke-virtual {v3, v4}, Lcom/nibiru/launcher3d/utils/LocalAppManager;->getAppLabel(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 285
    .local v2, "label":Ljava/lang/String;
    if-eqz v2, :cond_3c

    .line 286
    const-string v3, "com.Nibiru.IceParkour"

    invoke-virtual {v0, v3}, Lcom/nibiru/launcher3d/entry/AppData;->setPackageName(Ljava/lang/String;)V

    .line 287
    invoke-virtual {v0, v2}, Lcom/nibiru/launcher3d/entry/AppData;->setLabel(Ljava/lang/String;)V

    .line 288
    invoke-virtual {v0, v6}, Lcom/nibiru/launcher3d/entry/AppData;->setAppState(I)V

    .line 289
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v4

    invoke-virtual {v0, v4, v5}, Lcom/nibiru/launcher3d/entry/AppData;->setLastOpenTime(J)V

    .line 290
    iget-object v3, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mDbManager:Lcom/nibiru/launcher3d/db/DBManager;

    invoke-virtual {v3, v0}, Lcom/nibiru/launcher3d/db/DBManager;->insertAppData(Lcom/nibiru/launcher3d/entry/AppData;)V

    .line 293
    :cond_3c
    iget-object v3, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mAppManager:Lcom/nibiru/launcher3d/utils/LocalAppManager;

    const-string v4, "com.ArchiactInteractive.LamperVR"

    invoke-virtual {v3, v4}, Lcom/nibiru/launcher3d/utils/LocalAppManager;->getAppLabel(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 294
    if-eqz v2, :cond_62

    .line 295
    new-instance v0, Lcom/nibiru/launcher3d/entry/AppData;

    .end local v0  # "app":Lcom/nibiru/launcher3d/entry/AppData;
    invoke-direct {v0}, Lcom/nibiru/launcher3d/entry/AppData;-><init>()V

    .line 296
    .restart local v0  # "app":Lcom/nibiru/launcher3d/entry/AppData;
    const-string v3, "com.ArchiactInteractive.LamperVR"

    invoke-virtual {v0, v3}, Lcom/nibiru/launcher3d/entry/AppData;->setPackageName(Ljava/lang/String;)V

    .line 297
    invoke-virtual {v0, v2}, Lcom/nibiru/launcher3d/entry/AppData;->setLabel(Ljava/lang/String;)V

    .line 298
    invoke-virtual {v0, v6}, Lcom/nibiru/launcher3d/entry/AppData;->setAppState(I)V

    .line 299
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v4

    invoke-virtual {v0, v4, v5}, Lcom/nibiru/launcher3d/entry/AppData;->setLastOpenTime(J)V

    .line 300
    iget-object v3, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mDbManager:Lcom/nibiru/launcher3d/db/DBManager;

    invoke-virtual {v3, v0}, Lcom/nibiru/launcher3d/db/DBManager;->insertAppData(Lcom/nibiru/launcher3d/entry/AppData;)V

    .line 303
    :cond_62
    iget-object v3, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mAppManager:Lcom/nibiru/launcher3d/utils/LocalAppManager;

    const-string v4, "com.Nibiru.TheOutlaw"

    invoke-virtual {v3, v4}, Lcom/nibiru/launcher3d/utils/LocalAppManager;->getAppLabel(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 304
    if-eqz v2, :cond_88

    .line 305
    new-instance v0, Lcom/nibiru/launcher3d/entry/AppData;

    .end local v0  # "app":Lcom/nibiru/launcher3d/entry/AppData;
    invoke-direct {v0}, Lcom/nibiru/launcher3d/entry/AppData;-><init>()V

    .line 306
    .restart local v0  # "app":Lcom/nibiru/launcher3d/entry/AppData;
    const-string v3, "com.Nibiru.TheOutlaw"

    invoke-virtual {v0, v3}, Lcom/nibiru/launcher3d/entry/AppData;->setPackageName(Ljava/lang/String;)V

    .line 307
    invoke-virtual {v0, v2}, Lcom/nibiru/launcher3d/entry/AppData;->setLabel(Ljava/lang/String;)V

    .line 308
    invoke-virtual {v0, v6}, Lcom/nibiru/launcher3d/entry/AppData;->setAppState(I)V

    .line 309
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v4

    invoke-virtual {v0, v4, v5}, Lcom/nibiru/launcher3d/entry/AppData;->setLastOpenTime(J)V

    .line 310
    iget-object v3, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mDbManager:Lcom/nibiru/launcher3d/db/DBManager;

    invoke-virtual {v3, v0}, Lcom/nibiru/launcher3d/db/DBManager;->insertAppData(Lcom/nibiru/launcher3d/entry/AppData;)V

    .line 313
    :cond_88
    iget-object v3, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mAppManager:Lcom/nibiru/launcher3d/utils/LocalAppManager;

    const-string v4, "com.google.android.youtube"

    invoke-virtual {v3, v4}, Lcom/nibiru/launcher3d/utils/LocalAppManager;->getAppLabel(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 314
    if-eqz v2, :cond_ae

    .line 315
    new-instance v0, Lcom/nibiru/launcher3d/entry/AppData;

    .end local v0  # "app":Lcom/nibiru/launcher3d/entry/AppData;
    invoke-direct {v0}, Lcom/nibiru/launcher3d/entry/AppData;-><init>()V

    .line 316
    .restart local v0  # "app":Lcom/nibiru/launcher3d/entry/AppData;
    const-string v3, "com.google.android.youtube"

    invoke-virtual {v0, v3}, Lcom/nibiru/launcher3d/entry/AppData;->setPackageName(Ljava/lang/String;)V

    .line 317
    invoke-virtual {v0, v2}, Lcom/nibiru/launcher3d/entry/AppData;->setLabel(Ljava/lang/String;)V

    .line 318
    invoke-virtual {v0, v6}, Lcom/nibiru/launcher3d/entry/AppData;->setAppState(I)V

    .line 319
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v4

    invoke-virtual {v0, v4, v5}, Lcom/nibiru/launcher3d/entry/AppData;->setLastOpenTime(J)V

    .line 320
    iget-object v3, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mDbManager:Lcom/nibiru/launcher3d/db/DBManager;

    invoke-virtual {v3, v0}, Lcom/nibiru/launcher3d/db/DBManager;->insertAppData(Lcom/nibiru/launcher3d/entry/AppData;)V

    .line 323
    :cond_ae
    iget-object v3, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mAppManager:Lcom/nibiru/launcher3d/utils/LocalAppManager;

    const-string v4, "com.google.android.youtube.tv"

    invoke-virtual {v3, v4}, Lcom/nibiru/launcher3d/utils/LocalAppManager;->getAppLabel(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 324
    if-eqz v2, :cond_d4

    .line 325
    new-instance v0, Lcom/nibiru/launcher3d/entry/AppData;

    .end local v0  # "app":Lcom/nibiru/launcher3d/entry/AppData;
    invoke-direct {v0}, Lcom/nibiru/launcher3d/entry/AppData;-><init>()V

    .line 326
    .restart local v0  # "app":Lcom/nibiru/launcher3d/entry/AppData;
    const-string v3, "com.google.android.youtube.tv"

    invoke-virtual {v0, v3}, Lcom/nibiru/launcher3d/entry/AppData;->setPackageName(Ljava/lang/String;)V

    .line 327
    invoke-virtual {v0, v2}, Lcom/nibiru/launcher3d/entry/AppData;->setLabel(Ljava/lang/String;)V

    .line 328
    invoke-virtual {v0, v6}, Lcom/nibiru/launcher3d/entry/AppData;->setAppState(I)V

    .line 329
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v4

    invoke-virtual {v0, v4, v5}, Lcom/nibiru/launcher3d/entry/AppData;->setLastOpenTime(J)V

    .line 330
    iget-object v3, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mDbManager:Lcom/nibiru/launcher3d/db/DBManager;

    invoke-virtual {v3, v0}, Lcom/nibiru/launcher3d/db/DBManager;->insertAppData(Lcom/nibiru/launcher3d/entry/AppData;)V

    .line 333
    :cond_d4
    iget-object v3, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mAppManager:Lcom/nibiru/launcher3d/utils/LocalAppManager;

    const-string v4, "com.aptoide.vrstore"

    invoke-virtual {v3, v4}, Lcom/nibiru/launcher3d/utils/LocalAppManager;->getAppLabel(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 334
    if-eqz v2, :cond_fa

    .line 335
    new-instance v0, Lcom/nibiru/launcher3d/entry/AppData;

    .end local v0  # "app":Lcom/nibiru/launcher3d/entry/AppData;
    invoke-direct {v0}, Lcom/nibiru/launcher3d/entry/AppData;-><init>()V

    .line 336
    .restart local v0  # "app":Lcom/nibiru/launcher3d/entry/AppData;
    const-string v3, "com.aptoide.vrstore"

    invoke-virtual {v0, v3}, Lcom/nibiru/launcher3d/entry/AppData;->setPackageName(Ljava/lang/String;)V

    .line 337
    invoke-virtual {v0, v2}, Lcom/nibiru/launcher3d/entry/AppData;->setLabel(Ljava/lang/String;)V

    .line 338
    invoke-virtual {v0, v6}, Lcom/nibiru/launcher3d/entry/AppData;->setAppState(I)V

    .line 339
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v4

    invoke-virtual {v0, v4, v5}, Lcom/nibiru/launcher3d/entry/AppData;->setLastOpenTime(J)V

    .line 340
    iget-object v3, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mDbManager:Lcom/nibiru/launcher3d/db/DBManager;

    invoke-virtual {v3, v0}, Lcom/nibiru/launcher3d/db/DBManager;->insertAppData(Lcom/nibiru/launcher3d/entry/AppData;)V

    .line 350
    :cond_fa
    new-instance v0, Lcom/nibiru/launcher3d/entry/AppData;

    .end local v0  # "app":Lcom/nibiru/launcher3d/entry/AppData;
    invoke-direct {v0}, Lcom/nibiru/launcher3d/entry/AppData;-><init>()V

    .line 351
    .restart local v0  # "app":Lcom/nibiru/launcher3d/entry/AppData;
    const-string v3, "com.nibiru.vrfilemanager"

    invoke-virtual {v0, v3}, Lcom/nibiru/launcher3d/entry/AppData;->setPackageName(Ljava/lang/String;)V

    .line 352
    iget-object v3, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->historyTitles:[Ljava/lang/String;

    const/4 v4, 0x4

    aget-object v3, v3, v4

    invoke-virtual {v0, v3}, Lcom/nibiru/launcher3d/entry/AppData;->setLabel(Ljava/lang/String;)V

    .line 353
    invoke-virtual {v0, v6}, Lcom/nibiru/launcher3d/entry/AppData;->setAppState(I)V

    .line 354
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v4

    invoke-virtual {v0, v4, v5}, Lcom/nibiru/launcher3d/entry/AppData;->setLastOpenTime(J)V

    .line 355
    iget-object v3, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mDbManager:Lcom/nibiru/launcher3d/db/DBManager;

    invoke-virtual {v3, v0}, Lcom/nibiru/launcher3d/db/DBManager;->insertAppData(Lcom/nibiru/launcher3d/entry/AppData;)V

    .line 357
    iget-object v3, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mAppManager:Lcom/nibiru/launcher3d/utils/LocalAppManager;

    const-string v4, "com.nibiru.nibiruvrlive"

    invoke-virtual {v3, v4}, Lcom/nibiru/launcher3d/utils/LocalAppManager;->getAppLabel(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 358
    if-eqz v2, :cond_141

    .line 359
    new-instance v0, Lcom/nibiru/launcher3d/entry/AppData;

    .end local v0  # "app":Lcom/nibiru/launcher3d/entry/AppData;
    invoke-direct {v0}, Lcom/nibiru/launcher3d/entry/AppData;-><init>()V

    .line 360
    .restart local v0  # "app":Lcom/nibiru/launcher3d/entry/AppData;
    const-string v3, "com.nibiru.nibiruvrlive"

    invoke-virtual {v0, v3}, Lcom/nibiru/launcher3d/entry/AppData;->setPackageName(Ljava/lang/String;)V

    .line 361
    invoke-virtual {v0, v2}, Lcom/nibiru/launcher3d/entry/AppData;->setLabel(Ljava/lang/String;)V

    .line 362
    invoke-virtual {v0, v6}, Lcom/nibiru/launcher3d/entry/AppData;->setAppState(I)V

    .line 363
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v4

    invoke-virtual {v0, v4, v5}, Lcom/nibiru/launcher3d/entry/AppData;->setLastOpenTime(J)V

    .line 364
    iget-object v3, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mDbManager:Lcom/nibiru/launcher3d/db/DBManager;

    invoke-virtual {v3, v0}, Lcom/nibiru/launcher3d/db/DBManager;->insertAppData(Lcom/nibiru/launcher3d/entry/AppData;)V

    .line 367
    :cond_141
    new-instance v0, Lcom/nibiru/launcher3d/entry/AppData;

    .end local v0  # "app":Lcom/nibiru/launcher3d/entry/AppData;
    invoke-direct {v0}, Lcom/nibiru/launcher3d/entry/AppData;-><init>()V

    .line 368
    .restart local v0  # "app":Lcom/nibiru/launcher3d/entry/AppData;
    const-string v3, "com.nibiru.vrtour"

    invoke-virtual {v0, v3}, Lcom/nibiru/launcher3d/entry/AppData;->setPackageName(Ljava/lang/String;)V

    .line 369
    iget-object v3, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->historyTitles:[Ljava/lang/String;

    const/4 v4, 0x2

    aget-object v3, v3, v4

    invoke-virtual {v0, v3}, Lcom/nibiru/launcher3d/entry/AppData;->setLabel(Ljava/lang/String;)V

    .line 370
    invoke-virtual {v0, v6}, Lcom/nibiru/launcher3d/entry/AppData;->setAppState(I)V

    .line 371
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v4

    invoke-virtual {v0, v4, v5}, Lcom/nibiru/launcher3d/entry/AppData;->setLastOpenTime(J)V

    .line 372
    iget-object v3, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mDbManager:Lcom/nibiru/launcher3d/db/DBManager;

    invoke-virtual {v3, v0}, Lcom/nibiru/launcher3d/db/DBManager;->insertAppData(Lcom/nibiru/launcher3d/entry/AppData;)V

    .line 374
    new-instance v0, Lcom/nibiru/launcher3d/entry/AppData;

    .end local v0  # "app":Lcom/nibiru/launcher3d/entry/AppData;
    invoke-direct {v0}, Lcom/nibiru/launcher3d/entry/AppData;-><init>()V

    .line 375
    .restart local v0  # "app":Lcom/nibiru/launcher3d/entry/AppData;
    const-string v3, "com.nibiru.nibiruvrmedia360"

    invoke-virtual {v0, v3}, Lcom/nibiru/launcher3d/entry/AppData;->setPackageName(Ljava/lang/String;)V

    .line 376
    iget-object v3, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->historyTitles:[Ljava/lang/String;

    const/4 v4, 0x1

    aget-object v3, v3, v4

    invoke-virtual {v0, v3}, Lcom/nibiru/launcher3d/entry/AppData;->setLabel(Ljava/lang/String;)V

    .line 377
    invoke-virtual {v0, v6}, Lcom/nibiru/launcher3d/entry/AppData;->setAppState(I)V

    .line 378
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v4

    invoke-virtual {v0, v4, v5}, Lcom/nibiru/launcher3d/entry/AppData;->setLastOpenTime(J)V

    .line 379
    iget-object v3, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mDbManager:Lcom/nibiru/launcher3d/db/DBManager;

    invoke-virtual {v3, v0}, Lcom/nibiru/launcher3d/db/DBManager;->insertAppData(Lcom/nibiru/launcher3d/entry/AppData;)V

    .line 381
    new-instance v0, Lcom/nibiru/launcher3d/entry/AppData;

    .end local v0  # "app":Lcom/nibiru/launcher3d/entry/AppData;
    invoke-direct {v0}, Lcom/nibiru/launcher3d/entry/AppData;-><init>()V

    .line 382
    .restart local v0  # "app":Lcom/nibiru/launcher3d/entry/AppData;
    const-string v3, "com.nibiru.vr.media.pptvos"

    invoke-virtual {v0, v3}, Lcom/nibiru/launcher3d/entry/AppData;->setPackageName(Ljava/lang/String;)V

    .line 383
    iget-object v3, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->historyTitles:[Ljava/lang/String;

    aget-object v3, v3, v6

    invoke-virtual {v0, v3}, Lcom/nibiru/launcher3d/entry/AppData;->setLabel(Ljava/lang/String;)V

    .line 384
    invoke-virtual {v0, v6}, Lcom/nibiru/launcher3d/entry/AppData;->setAppState(I)V

    .line 385
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v4

    invoke-virtual {v0, v4, v5}, Lcom/nibiru/launcher3d/entry/AppData;->setLastOpenTime(J)V

    .line 386
    iget-object v3, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mDbManager:Lcom/nibiru/launcher3d/db/DBManager;

    invoke-virtual {v3, v0}, Lcom/nibiru/launcher3d/db/DBManager;->insertAppData(Lcom/nibiru/launcher3d/entry/AppData;)V

    .line 388
    new-instance v0, Lcom/nibiru/launcher3d/entry/AppData;

    .end local v0  # "app":Lcom/nibiru/launcher3d/entry/AppData;
    invoke-direct {v0}, Lcom/nibiru/launcher3d/entry/AppData;-><init>()V

    .line 389
    .restart local v0  # "app":Lcom/nibiru/launcher3d/entry/AppData;
    const-string v3, "com.nibiru.vr.media.pptv"

    invoke-virtual {v0, v3}, Lcom/nibiru/launcher3d/entry/AppData;->setPackageName(Ljava/lang/String;)V

    .line 390
    iget-object v3, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->historyTitles:[Ljava/lang/String;

    aget-object v3, v3, v6

    invoke-virtual {v0, v3}, Lcom/nibiru/launcher3d/entry/AppData;->setLabel(Ljava/lang/String;)V

    .line 391
    invoke-virtual {v0, v6}, Lcom/nibiru/launcher3d/entry/AppData;->setAppState(I)V

    .line 392
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v4

    invoke-virtual {v0, v4, v5}, Lcom/nibiru/launcher3d/entry/AppData;->setLastOpenTime(J)V

    .line 393
    iget-object v3, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mDbManager:Lcom/nibiru/launcher3d/db/DBManager;

    invoke-virtual {v3, v0}, Lcom/nibiru/launcher3d/db/DBManager;->insertAppData(Lcom/nibiru/launcher3d/entry/AppData;)V

    .line 394
    return-void

    .line 278
    .end local v0  # "app":Lcom/nibiru/launcher3d/entry/AppData;
    .end local v2  # "label":Ljava/lang/String;
    :catch_1c4
    move-exception v1

    .line 279
    .local v1, "e":Landroid/content/res/Resources$NotFoundException;
    invoke-virtual {v1}, Landroid/content/res/Resources$NotFoundException;->printStackTrace()V

    goto/16 :goto_16
.end method

.method private saveWhiteList()V
    .registers 3

    .prologue
    .line 171
    new-instance v0, Ljava/lang/Thread;

    new-instance v1, Lcom/nibiru/lanchuer/Lanchuer2DActivity$1;

    invoke-direct {v1, p0}, Lcom/nibiru/lanchuer/Lanchuer2DActivity$1;-><init>(Lcom/nibiru/lanchuer/Lanchuer2DActivity;)V

    invoke-direct {v0, v1}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    .line 181
    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    .line 182
    return-void
.end method


# virtual methods
.method public onAppStateChanged(Ljava/lang/String;Z)V
    .registers 6
    .param p1, "packageName"  # Ljava/lang/String;
    .param p2, "isInstall"  # Z

    .prologue
    const/4 v2, 0x1

    .line 528
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ", "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/nibiru/launcher3d/utils/LogUtil;->log(Ljava/lang/String;)V

    .line 529
    sput-object p1, Lcom/nibiru/launcher3d/utils/LauncherHelper;->packageName:Ljava/lang/String;

    .line 530
    if-eqz p2, :cond_2b

    .line 531
    iget-object v0, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mAppManager:Lcom/nibiru/launcher3d/utils/LocalAppManager;

    if-eqz v0, :cond_28

    .line 532
    iget-object v0, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mAppManager:Lcom/nibiru/launcher3d/utils/LocalAppManager;

    invoke-virtual {v0, p1}, Lcom/nibiru/launcher3d/utils/LocalAppManager;->updateData(Ljava/lang/String;)V

    .line 534
    :cond_28
    sput v2, Lcom/nibiru/launcher3d/utils/LauncherHelper;->appState:I

    .line 539
    :goto_2a
    return-void

    .line 536
    :cond_2b
    const/4 v0, 0x2

    sput v0, Lcom/nibiru/launcher3d/utils/LauncherHelper;->appState:I

    .line 537
    sput-boolean v2, Lcom/nibiru/launcher3d/utils/LauncherHelper;->isOpenApp:Z

    goto :goto_2a
.end method

.method public onBatteryChanged(I)V
    .registers 2
    .param p1, "state"  # I

    .prologue
    .line 434
    sput p1, Lcom/nibiru/launcher3d/utils/LauncherHelper;->batteryLevelValue:I

    .line 435
    return-void
.end method

.method public onBatteryPower(Z)V
    .registers 3
    .param p1, "state"  # Z

    .prologue
    .line 439
    if-eqz p1, :cond_6

    .line 440
    const/4 v0, 0x1

    sput v0, Lcom/nibiru/launcher3d/utils/LauncherHelper;->batteryState:I

    .line 444
    :goto_5
    return-void

    .line 442
    :cond_6
    const/4 v0, 0x0

    sput v0, Lcom/nibiru/launcher3d/utils/LauncherHelper;->batteryState:I

    goto :goto_5
.end method

.method public onBluetoothStateChanged(I)V
    .registers 4
    .param p1, "state"  # I

    .prologue
    const/4 v0, 0x2

    const/4 v1, 0x1

    .line 398
    if-ne p1, v0, :cond_7

    .line 399
    sput v0, Lcom/nibiru/launcher3d/utils/LauncherHelper;->bluetoothState:I

    .line 408
    :goto_6
    return-void

    .line 400
    :cond_7
    const/16 v0, 0xc

    if-eq p1, v0, :cond_12

    if-eq p1, v1, :cond_12

    if-eqz p1, :cond_12

    const/4 v0, 0x3

    if-ne p1, v0, :cond_15

    .line 404
    :cond_12
    sput v1, Lcom/nibiru/launcher3d/utils/LauncherHelper;->bluetoothState:I

    goto :goto_6

    .line 406
    :cond_15
    const/4 v0, 0x0

    sput v0, Lcom/nibiru/launcher3d/utils/LauncherHelper;->bluetoothState:I

    goto :goto_6
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .registers 18
    .param p1, "savedInstanceState"  # Landroid/os/Bundle;

    .prologue
    .line 67
    invoke-super/range {p0 .. p1}, Lx/core/XBaseXRActivity;->onCreate(Landroid/os/Bundle;)V

    .line 69
    const/4 v4, 0x0

    .line 70
    .local v4, "gcBySystem":Z
    if-eqz p1, :cond_f

    .line 71
    const-string v13, "gcBySystem"

    const/4 v14, 0x0

    move-object/from16 v0, p1

    invoke-virtual {v0, v13, v14}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z

    move-result v4

    .line 73
    :cond_f
    const-string v13, "Device"

    const/4 v14, 0x0

    move-object/from16 v0, p0

    invoke-virtual {v0, v13, v14}, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v13

    invoke-interface {v13}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v14

    const-string v15, "ShowPassword"

    if-nez v4, :cond_192

    const/4 v13, 0x1

    :goto_21
    invoke-interface {v14, v15, v13}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    move-result-object v13

    invoke-interface {v13}, Landroid/content/SharedPreferences$Editor;->apply()V

    .line 75
    invoke-virtual/range {p0 .. p0}, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v13

    invoke-virtual {v13}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object v13

    iget-object v13, v13, Landroid/content/res/Configuration;->locale:Ljava/util/Locale;

    invoke-virtual {v13}, Ljava/util/Locale;->getLanguage()Ljava/lang/String;

    move-result-object v13

    sput-object v13, Lcom/nibiru/launcher3d/utils/LauncherHelper;->language:Ljava/lang/String;

    .line 76
    invoke-static/range {p0 .. p0}, Lcom/android/volley/toolbox/Volley;->newRequestQueue(Landroid/content/Context;)Lcom/android/volley/RequestQueue;

    move-result-object v13

    move-object/from16 v0, p0

    iput-object v13, v0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->queue:Lcom/android/volley/RequestQueue;

    .line 77
    invoke-virtual/range {p0 .. p0}, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->getNibiruVRService()Lcom/nibiru/lib/vr/NibiruVRService;

    move-result-object v13

    if-eqz v13, :cond_199

    .line 78
    invoke-virtual/range {p0 .. p0}, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->isStoreOversea()Z

    move-result v13

    sput-boolean v13, Lcom/nibiru/launcher3d/utils/LauncherHelper;->isOversea:Z

    .line 79
    invoke-virtual/range {p0 .. p0}, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->getChannelCode()Ljava/lang/String;

    move-result-object v1

    .line 80
    .local v1, "channel":Ljava/lang/String;
    new-instance v13, Ljava/lang/StringBuilder;

    invoke-direct {v13}, Ljava/lang/StringBuilder;-><init>()V

    const-string v14, "channel: "

    invoke-virtual {v13, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v13

    invoke-virtual {v13, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v13

    invoke-virtual {v13}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v13

    invoke-static {v13}, Lcom/nibiru/launcher3d/utils/LogUtil;->log(Ljava/lang/String;)V

    .line 81
    sget-boolean v13, Lcom/nibiru/launcher3d/utils/LauncherHelper;->isOversea:Z

    if-eqz v13, :cond_195

    .line 82
    sput-object v1, Lcom/nibiru/launcher3d/utils/LauncherHelper;->CHANNEL_OVERSEA:Ljava/lang/String;

    .line 86
    :goto_6c
    invoke-direct/range {p0 .. p0}, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->saveWhiteList()V

    .line 94
    .end local v1  # "channel":Ljava/lang/String;
    :cond_6f
    :goto_6f
    sget-object v13, Lcom/nibiru/launcher3d/utils/LauncherHelper;->password:Ljava/lang/String;

    invoke-static {v13}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v13

    if-nez v13, :cond_7a

    .line 95
    invoke-direct/range {p0 .. p0}, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->bindResetService()V

    .line 98
    :cond_7a
    invoke-static/range {p0 .. p0}, Lcom/nibiru/launcher3d/utils/LocalAppManager;->getInstance(Landroid/content/Context;)Lcom/nibiru/launcher3d/utils/LocalAppManager;

    move-result-object v13

    move-object/from16 v0, p0

    iput-object v13, v0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mAppManager:Lcom/nibiru/launcher3d/utils/LocalAppManager;

    .line 99
    invoke-static/range {p0 .. p0}, Lcom/nibiru/launcher3d/db/DBManager;->getInstance(Landroid/content/Context;)Lcom/nibiru/launcher3d/db/DBManager;

    move-result-object v13

    move-object/from16 v0, p0

    iput-object v13, v0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mDbManager:Lcom/nibiru/launcher3d/db/DBManager;

    .line 101
    invoke-virtual/range {p0 .. p0}, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->stateMonitor()V

    .line 103
    new-instance v13, Lcom/nibiru/launcher3d/receiver/AppManagerReceiver;

    invoke-direct {v13}, Lcom/nibiru/launcher3d/receiver/AppManagerReceiver;-><init>()V

    move-object/from16 v0, p0

    iput-object v13, v0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mAppReceiver:Lcom/nibiru/launcher3d/receiver/AppManagerReceiver;

    .line 104
    new-instance v3, Landroid/content/IntentFilter;

    invoke-direct {v3}, Landroid/content/IntentFilter;-><init>()V

    .line 105
    .local v3, "filter":Landroid/content/IntentFilter;
    const-string v13, "android.intent.action.PACKAGE_ADDED"

    invoke-virtual {v3, v13}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 106
    const-string v13, "android.intent.action.PACKAGE_REMOVED"

    invoke-virtual {v3, v13}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 108
    const-string v13, "package"

    invoke-virtual {v3, v13}, Landroid/content/IntentFilter;->addDataScheme(Ljava/lang/String;)V

    .line 109
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mAppReceiver:Lcom/nibiru/launcher3d/receiver/AppManagerReceiver;

    move-object/from16 v0, p0

    invoke-virtual {v0, v13, v3}, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    .line 110
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mAppReceiver:Lcom/nibiru/launcher3d/receiver/AppManagerReceiver;

    move-object/from16 v0, p0

    invoke-virtual {v13, v0}, Lcom/nibiru/launcher3d/receiver/AppManagerReceiver;->registerAppStateChangeListener(Lcom/nibiru/launcher3d/receiver/OnAppStateChangeListener;)V

    .line 112
    new-instance v13, Lcom/nibiru/lanchuer/Lanchuer2DActivity$AppEnterReceiver;

    const/4 v14, 0x0

    move-object/from16 v0, p0

    invoke-direct {v13, v0, v14}, Lcom/nibiru/lanchuer/Lanchuer2DActivity$AppEnterReceiver;-><init>(Lcom/nibiru/lanchuer/Lanchuer2DActivity;Lcom/nibiru/lanchuer/Lanchuer2DActivity$1;)V

    move-object/from16 v0, p0

    iput-object v13, v0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->appEnterReceiver:Lcom/nibiru/lanchuer/Lanchuer2DActivity$AppEnterReceiver;

    .line 113
    new-instance v3, Landroid/content/IntentFilter;

    .end local v3  # "filter":Landroid/content/IntentFilter;
    const-string v13, "com.nibiru.action.keycode.enter"

    invoke-direct {v3, v13}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V

    .line 114
    .restart local v3  # "filter":Landroid/content/IntentFilter;
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->appEnterReceiver:Lcom/nibiru/lanchuer/Lanchuer2DActivity$AppEnterReceiver;

    move-object/from16 v0, p0

    invoke-virtual {v0, v13, v3}, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    .line 116
    new-instance v13, Lcom/nibiru/lanchuer/Lanchuer2DActivity$HomeKeyEventReceiver;

    const/4 v14, 0x0

    move-object/from16 v0, p0

    invoke-direct {v13, v0, v14}, Lcom/nibiru/lanchuer/Lanchuer2DActivity$HomeKeyEventReceiver;-><init>(Lcom/nibiru/lanchuer/Lanchuer2DActivity;Lcom/nibiru/lanchuer/Lanchuer2DActivity$1;)V

    move-object/from16 v0, p0

    iput-object v13, v0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mHomeKeyEventReceiver:Lcom/nibiru/lanchuer/Lanchuer2DActivity$HomeKeyEventReceiver;

    .line 117
    new-instance v5, Landroid/content/IntentFilter;

    invoke-direct {v5}, Landroid/content/IntentFilter;-><init>()V

    .line 118
    .local v5, "homeKeyFilter":Landroid/content/IntentFilter;
    const-string v13, "android.intent.action.CLOSE_SYSTEM_DIALOGS"

    invoke-virtual {v5, v13}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 119
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mHomeKeyEventReceiver:Lcom/nibiru/lanchuer/Lanchuer2DActivity$HomeKeyEventReceiver;

    move-object/from16 v0, p0

    invoke-virtual {v0, v13, v5}, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    .line 121
    new-instance v13, Lcom/nibiru/lanchuer/Lanchuer2DActivity$HomeKeyReceiver;

    const/4 v14, 0x0

    move-object/from16 v0, p0

    invoke-direct {v13, v0, v14}, Lcom/nibiru/lanchuer/Lanchuer2DActivity$HomeKeyReceiver;-><init>(Lcom/nibiru/lanchuer/Lanchuer2DActivity;Lcom/nibiru/lanchuer/Lanchuer2DActivity$1;)V

    move-object/from16 v0, p0

    iput-object v13, v0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mHomeKeyReceiver:Lcom/nibiru/lanchuer/Lanchuer2DActivity$HomeKeyReceiver;

    .line 122
    new-instance v5, Landroid/content/IntentFilter;

    .end local v5  # "homeKeyFilter":Landroid/content/IntentFilter;
    invoke-direct {v5}, Landroid/content/IntentFilter;-><init>()V

    .line 123
    .restart local v5  # "homeKeyFilter":Landroid/content/IntentFilter;
    const-string v13, "com.nibiru.intent.action.PRESS_HOMEKEY"

    invoke-virtual {v5, v13}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 124
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mHomeKeyReceiver:Lcom/nibiru/lanchuer/Lanchuer2DActivity$HomeKeyReceiver;

    move-object/from16 v0, p0

    invoke-virtual {v0, v13, v5}, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    .line 126
    const/4 v13, 0x0

    move-object/from16 v0, p0

    invoke-virtual {v0, v13}, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->getPreferences(I)Landroid/content/SharedPreferences;

    move-result-object v10

    .line 127
    .local v10, "preferences":Landroid/content/SharedPreferences;
    const-string v13, "isFirst"

    const/4 v14, 0x0

    invoke-interface {v10, v13, v14}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v8

    .line 128
    .local v8, "isFirst":Z
    new-instance v13, Ljava/lang/StringBuilder;

    invoke-direct {v13}, Ljava/lang/StringBuilder;-><init>()V

    const-string v14, "isFirst: "

    invoke-virtual {v13, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v13

    invoke-virtual {v13, v8}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    move-result-object v13

    invoke-virtual {v13}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v13

    invoke-static {v13}, Lcom/nibiru/launcher3d/utils/LogUtil;->log(Ljava/lang/String;)V

    .line 129
    if-nez v8, :cond_14c

    .line 130
    invoke-direct/range {p0 .. p0}, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->initHistory()V

    .line 131
    invoke-interface {v10}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v2

    .line 132
    .local v2, "editor":Landroid/content/SharedPreferences$Editor;
    const-string v13, "isFirst"

    const/4 v14, 0x1

    invoke-interface {v2, v13, v14}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    .line 133
    invoke-interface {v2}, Landroid/content/SharedPreferences$Editor;->apply()V

    .line 138
    .end local v2  # "editor":Landroid/content/SharedPreferences$Editor;
    :cond_14c
    invoke-static/range {p0 .. p0}, Lcom/nibiru/stat/sdk/IStatSDK;->getInstance(Landroid/content/Context;)Lcom/nibiru/stat/sdk/IStatSDK;

    move-result-object v13

    move-object/from16 v0, p0

    iput-object v13, v0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mStatSDK:Lcom/nibiru/stat/sdk/IStatSDK;

    .line 140
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mStatSDK:Lcom/nibiru/stat/sdk/IStatSDK;

    const-string v14, "Launcher-Start"

    invoke-virtual {v13, v14}, Lcom/nibiru/stat/sdk/IStatSDK;->onAppStart(Ljava/lang/String;)V

    .line 142
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mStatSDK:Lcom/nibiru/stat/sdk/IStatSDK;

    invoke-virtual {v13}, Lcom/nibiru/stat/sdk/IStatSDK;->initStat()V

    .line 144
    invoke-virtual/range {p0 .. p0}, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->getNVRManagerService()Landroid/app/INibiruVRManager;

    move-result-object v9

    .line 145
    .local v9, "nibiruVRManager":Landroid/app/INibiruVRManager;
    if-eqz v9, :cond_191

    .line 146
    const-string v13, "nvr_sys_needhelper"

    invoke-virtual {v9, v13}, Landroid/app/INibiruVRManager;->getParameters(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    .line 147
    .local v11, "result":Ljava/lang/String;
    invoke-static {v11}, Ljava/lang/Boolean;->valueOf(Ljava/lang/String;)Ljava/lang/Boolean;

    move-result-object v13

    invoke-virtual {v13}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v12

    .line 148
    .local v12, "resultBool":Z
    if-eqz v12, :cond_191

    .line 149
    new-instance v6, Landroid/content/Intent;

    const-string v13, "android.settings.LANGUAGE_SETTINGS"

    invoke-direct {v6, v13}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 150
    .local v6, "intent":Landroid/content/Intent;
    const/high16 v13, 0x10000000

    invoke-virtual {v6, v13}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    .line 151
    const-string v13, "isGuide"

    const/4 v14, 0x1

    invoke-virtual {v6, v13, v14}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 152
    move-object/from16 v0, p0

    invoke-virtual {v0, v6}, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->startActivity(Landroid/content/Intent;)V

    .line 156
    .end local v6  # "intent":Landroid/content/Intent;
    .end local v11  # "result":Ljava/lang/String;
    .end local v12  # "resultBool":Z
    :cond_191
    return-void

    .line 73
    .end local v3  # "filter":Landroid/content/IntentFilter;
    .end local v5  # "homeKeyFilter":Landroid/content/IntentFilter;
    .end local v8  # "isFirst":Z
    .end local v9  # "nibiruVRManager":Landroid/app/INibiruVRManager;
    .end local v10  # "preferences":Landroid/content/SharedPreferences;
    :cond_192
    const/4 v13, 0x0

    goto/16 :goto_21

    .line 84
    .restart local v1  # "channel":Ljava/lang/String;
    :cond_195
    sput-object v1, Lcom/nibiru/launcher3d/utils/LauncherHelper;->CHANNEL:Ljava/lang/String;

    goto/16 :goto_6c

    .line 88
    .end local v1  # "channel":Ljava/lang/String;
    :cond_199
    const/4 v13, 0x0

    move-object/from16 v0, p0

    invoke-direct {v0, v13}, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->getServiceIntent(Ljava/lang/String;)Landroid/content/Intent;

    move-result-object v7

    .line 89
    .local v7, "intent_service":Landroid/content/Intent;
    if-eqz v7, :cond_6f

    .line 90
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->serviceConnection:Landroid/content/ServiceConnection;

    const/4 v14, 0x1

    move-object/from16 v0, p0

    invoke-virtual {v0, v7, v13, v14}, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->bindService(Landroid/content/Intent;Landroid/content/ServiceConnection;I)Z

    goto/16 :goto_6f
.end method

.method public onDestroy()V
    .registers 4

    .prologue
    const/4 v2, 0x0

    .line 472
    invoke-super {p0}, Lx/core/XBaseXRActivity;->onDestroy()V

    .line 473
    iget-object v0, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mStatMonitor:Lcom/nibiru/launcher3d/utils/StatMonitor;

    if-eqz v0, :cond_d

    .line 474
    iget-object v0, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mStatMonitor:Lcom/nibiru/launcher3d/utils/StatMonitor;

    invoke-virtual {v0}, Lcom/nibiru/launcher3d/utils/StatMonitor;->finishMonitor()V

    .line 477
    :cond_d
    iget-object v0, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mAppReceiver:Lcom/nibiru/launcher3d/receiver/AppManagerReceiver;

    if-eqz v0, :cond_1b

    .line 478
    iget-object v0, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mAppReceiver:Lcom/nibiru/launcher3d/receiver/AppManagerReceiver;

    invoke-virtual {v0, p0}, Lcom/nibiru/launcher3d/receiver/AppManagerReceiver;->unregisterAppStateChangeListener(Lcom/nibiru/launcher3d/receiver/OnAppStateChangeListener;)V

    .line 479
    iget-object v0, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mAppReceiver:Lcom/nibiru/launcher3d/receiver/AppManagerReceiver;

    invoke-virtual {p0, v0}, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V

    .line 482
    :cond_1b
    iget-object v0, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->appEnterReceiver:Lcom/nibiru/lanchuer/Lanchuer2DActivity$AppEnterReceiver;

    if-eqz v0, :cond_24

    .line 483
    iget-object v0, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->appEnterReceiver:Lcom/nibiru/lanchuer/Lanchuer2DActivity$AppEnterReceiver;

    invoke-virtual {p0, v0}, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V

    .line 493
    :cond_24
    iget-object v0, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mHomeKeyEventReceiver:Lcom/nibiru/lanchuer/Lanchuer2DActivity$HomeKeyEventReceiver;

    if-eqz v0, :cond_2d

    .line 494
    iget-object v0, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mHomeKeyEventReceiver:Lcom/nibiru/lanchuer/Lanchuer2DActivity$HomeKeyEventReceiver;

    invoke-virtual {p0, v0}, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V

    .line 497
    :cond_2d
    iget-object v0, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mHomeKeyReceiver:Lcom/nibiru/lanchuer/Lanchuer2DActivity$HomeKeyReceiver;

    if-eqz v0, :cond_36

    .line 498
    iget-object v0, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mHomeKeyReceiver:Lcom/nibiru/lanchuer/Lanchuer2DActivity$HomeKeyReceiver;

    invoke-virtual {p0, v0}, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V

    .line 501
    :cond_36
    iget-object v0, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mService:Lcom/nibiru/vrconfig/IVRDataService;

    if-eqz v0, :cond_41

    .line 502
    iget-object v0, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->serviceConnection:Landroid/content/ServiceConnection;

    invoke-virtual {p0, v0}, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->unbindService(Landroid/content/ServiceConnection;)V

    .line 503
    iput-object v2, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->serviceConnection:Landroid/content/ServiceConnection;

    .line 506
    :cond_41
    iget-object v0, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mStatSDK:Lcom/nibiru/stat/sdk/IStatSDK;

    if-eqz v0, :cond_51

    .line 507
    iget-object v0, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mStatSDK:Lcom/nibiru/stat/sdk/IStatSDK;

    const-string v1, "Launcher-Close"

    invoke-virtual {v0, v1}, Lcom/nibiru/stat/sdk/IStatSDK;->onAppClose(Ljava/lang/String;)V

    .line 508
    iget-object v0, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mStatSDK:Lcom/nibiru/stat/sdk/IStatSDK;

    invoke-virtual {v0}, Lcom/nibiru/stat/sdk/IStatSDK;->onStop()V

    .line 511
    :cond_51
    iget-object v0, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->resetServiceConnection:Landroid/content/ServiceConnection;

    if-eqz v0, :cond_5c

    .line 512
    iget-object v0, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->resetServiceConnection:Landroid/content/ServiceConnection;

    invoke-virtual {p0, v0}, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->unbindService(Landroid/content/ServiceConnection;)V

    .line 513
    iput-object v2, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->resetServiceConnection:Landroid/content/ServiceConnection;

    .line 516
    :cond_5c
    invoke-static {p0}, Lcom/nibiru/launcher3d/utils/MediaManager;->getInstance(Landroid/content/Context;)Lcom/nibiru/launcher3d/utils/MediaManager;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nibiru/launcher3d/utils/MediaManager;->release()V

    .line 517
    return-void
.end method

.method public onHeadsetStateChanged(Z)V
    .registers 4
    .param p1, "state"  # Z

    .prologue
    .line 457
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "onHeadsetStateChanged: "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/nibiru/launcher3d/utils/LogUtil;->log(Ljava/lang/String;)V

    .line 458
    if-eqz p1, :cond_1c

    .line 459
    const/4 v0, 0x1

    sput v0, Lcom/nibiru/launcher3d/utils/LauncherHelper;->headsetState:I

    .line 463
    :goto_1b
    return-void

    .line 461
    :cond_1c
    const/4 v0, 0x0

    sput v0, Lcom/nibiru/launcher3d/utils/LauncherHelper;->headsetState:I

    goto :goto_1b
.end method

.method public onNetworkStateChanged(III)V
    .registers 8
    .param p1, "nettype"  # I
    .param p2, "state"  # I
    .param p3, "rssi"  # I

    .prologue
    const/4 v3, 0x3

    const/4 v2, 0x2

    const/4 v0, 0x0

    const/4 v1, 0x1

    .line 412
    if-ne p1, v1, :cond_26

    if-nez p2, :cond_26

    .line 413
    if-nez p3, :cond_16

    .line 414
    sput v1, Lcom/nibiru/launcher3d/utils/LauncherHelper;->wifiState:I

    .line 422
    :cond_c
    :goto_c
    iget-boolean v0, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->isWifiAvailable:Z

    if-nez v0, :cond_15

    .line 423
    invoke-direct {p0}, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->getWhiteList()V

    .line 424
    iput-boolean v1, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->isWifiAvailable:Z

    .line 430
    :cond_15
    :goto_15
    return-void

    .line 415
    :cond_16
    if-ne p3, v1, :cond_1b

    .line 416
    sput v2, Lcom/nibiru/launcher3d/utils/LauncherHelper;->wifiState:I

    goto :goto_c

    .line 417
    :cond_1b
    if-ne p3, v2, :cond_20

    .line 418
    sput v3, Lcom/nibiru/launcher3d/utils/LauncherHelper;->wifiState:I

    goto :goto_c

    .line 419
    :cond_20
    if-ne p3, v3, :cond_c

    .line 420
    const/4 v0, 0x4

    sput v0, Lcom/nibiru/launcher3d/utils/LauncherHelper;->wifiState:I

    goto :goto_c

    .line 427
    :cond_26
    sput v0, Lcom/nibiru/launcher3d/utils/LauncherHelper;->wifiState:I

    .line 428
    iput-boolean v0, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->isWifiAvailable:Z

    goto :goto_15
.end method

.method public onResume()V
    .registers 2

    .prologue
    .line 521
    invoke-super {p0}, Lx/core/XBaseXRActivity;->onResume()V

    .line 522
    invoke-virtual {p0}, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object v0

    iget-object v0, v0, Landroid/content/res/Configuration;->locale:Ljava/util/Locale;

    invoke-virtual {v0}, Ljava/util/Locale;->getLanguage()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/nibiru/launcher3d/utils/LauncherHelper;->language:Ljava/lang/String;

    .line 523
    invoke-virtual {p0}, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object v0

    iget-object v0, v0, Landroid/content/res/Configuration;->locale:Ljava/util/Locale;

    invoke-virtual {v0}, Ljava/util/Locale;->getCountry()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/nibiru/launcher3d/utils/LauncherHelper;->country:Ljava/lang/String;

    .line 524
    return-void
.end method

.method protected onSaveInstanceState(Landroid/os/Bundle;)V
    .registers 4
    .param p1, "outState"  # Landroid/os/Bundle;

    .prologue
    .line 160
    const-string v0, "gcBySystem"

    const/4 v1, 0x1

    invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V

    .line 161
    invoke-super {p0, p1}, Lx/core/XBaseXRActivity;->onSaveInstanceState(Landroid/os/Bundle;)V

    .line 162
    return-void
.end method

.method public onSoundStateChanged(Z)V
    .registers 2
    .param p1, "state"  # Z

    .prologue
    .line 468
    return-void
.end method

.method public onTFStateChanged(Z)V
    .registers 3
    .param p1, "state"  # Z

    .prologue
    .line 448
    if-eqz p1, :cond_6

    .line 449
    const/4 v0, 0x1

    sput v0, Lcom/nibiru/launcher3d/utils/LauncherHelper;->sdcardState:I

    .line 453
    :goto_5
    return-void

    .line 451
    :cond_6
    const/4 v0, 0x0

    sput v0, Lcom/nibiru/launcher3d/utils/LauncherHelper;->sdcardState:I

    goto :goto_5
.end method

.method public resetSystem()V
    .registers 3

    .prologue
    .line 233
    iget-object v1, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->resetApi:Lcom/nibiru/api/ResetApi;

    if-eqz v1, :cond_e

    .line 235
    :try_start_4
    iget-object v1, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->resetApi:Lcom/nibiru/api/ResetApi;

    invoke-interface {v1}, Lcom/nibiru/api/ResetApi;->systemReset()V

    .line 236
    const-string v1, "resetSystem"

    invoke-static {v1}, Lcom/nibiru/launcher3d/utils/LogUtil;->log(Ljava/lang/String;)V
    :try_end_e
    .catch Landroid/os/RemoteException; {:try_start_4 .. :try_end_e} :catch_f

    .line 241
    :cond_e
    :goto_e
    return-void

    .line 237
    :catch_f
    move-exception v0

    .line 238
    .local v0, "e":Landroid/os/RemoteException;
    invoke-virtual {v0}, Landroid/os/RemoteException;->printStackTrace()V

    goto :goto_e
.end method

.method public stateMonitor()V
    .registers 2

    .prologue
    .line 165
    new-instance v0, Lcom/nibiru/launcher3d/utils/StatMonitor;

    invoke-direct {v0, p0}, Lcom/nibiru/launcher3d/utils/StatMonitor;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mStatMonitor:Lcom/nibiru/launcher3d/utils/StatMonitor;

    .line 166
    iget-object v0, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mStatMonitor:Lcom/nibiru/launcher3d/utils/StatMonitor;

    invoke-virtual {v0, p0}, Lcom/nibiru/launcher3d/utils/StatMonitor;->setListener(Lcom/nibiru/launcher3d/utils/StatMonitor$OnStatChangeListener;)V

    .line 167
    iget-object v0, p0, Lcom/nibiru/lanchuer/Lanchuer2DActivity;->mStatMonitor:Lcom/nibiru/launcher3d/utils/StatMonitor;

    invoke-virtual {v0}, Lcom/nibiru/launcher3d/utils/StatMonitor;->initMonitor()V

    .line 168
    return-void
.end method
